# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
# Contributor: lilydjwg <lilydjwg@gmail.com>

pkgname=python-requests-file
pkgver=1.5.1
pkgrel=6
pkgdesc="File transport adapter for Requests"
arch=('any')
url="https://github.com/dashea/requests-file"
license=('Apache')
depends=('python-six' 'python-requests')
makedepends=('python-setuptools')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/dashea/requests-file/archive/${pkgver}.tar.gz")
sha256sums=('a9b0a80675727f320cd5c71d6eb70cc3969b468dc27896a893148c0f6b424446')

build() {
  cd "$srcdir"/requests-file-${pkgver}

  python setup.py build_ext --inplace
  python setup.py build
}

package() {
  cd "$srcdir"/requests-file-${pkgver}

  python setup.py install --skip-build --root="$pkgdir" --optimize=1
}
